package com.dorm.pojo;

import java.sql.Date;

public class Hostel {
	private Integer id;
	private Student student;
	private Dorm dorm;
	private Date enter_date;
	private Date leave_date;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Student getStudent() {
		return student;
	}
	public void setStudent(Student student) {
		this.student = student;
	}
	public Dorm getDorm() {
		return dorm;
	}
	public void setDorm(Dorm dorm) {
		this.dorm = dorm;
	}
	public Date getEnter_date() {
		return enter_date;
	}
	public void setEnter_date(Date enter_date) {
		this.enter_date = enter_date;
	}
	public Date getLeave_date() {
		return leave_date;
	}
	public void setLeave_date(Date leave_date) {
		this.leave_date = leave_date;
	}
	@Override
	public String toString() {
		return "StudentDorm [id=" + id + ", student=" + student + ", dorm=" + dorm + ", enter_date=" + enter_date
				+ ", leave_date=" + leave_date + ", getId()=" + getId() + ", getStudent()=" + getStudent()
				+ ", getDorm()=" + getDorm() + ", getEnter_date()=" + getEnter_date() + ", getLeave_date()="
				+ getLeave_date() + ", getClass()=" + getClass() + ", hashCode()=" + hashCode() + ", toString()="
				+ super.toString() + "]";
	}

	
	
}
